#include "setip.h"
#include "ui_setip.h"

setip::setip(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::setip)
{
    ui->setupUi(this);
    //设置服务器默认ip和端口
    ui->setip_2->setText("127.0.0.1");
    ui->setport->setText("8899");
}

setip::~setip()
{
    delete ui;
}

void setip::on_close3_clicked()
{
    this->hide();
}

void setip::on_min3_clicked()
{
    this->showMinimized();
}

void setip::on_btnsave_clicked()
{
    QString strip = ui->setip_2->text();
    QString strport = ui->setport->text();
    emit sendipData(strip);
    emit sendportData(strport);
}

